using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using Credinka.Ayni.SEA.EN;
using Credinka.Ayni.SEA.AD;
namespace Credinka.Ayni.SEA.RN
{

    public class rnLogueo : rnGeneral
    {
        adLogueo oadLogueo;

        public int Registrar(enLogueo poenLogueo)
        {
            int N = -1;
            using (SqlConnection con = new SqlConnection(sConexion))
            {
                try
                {
                    con.Open();
                    oadLogueo = new adLogueo(con);
                    N = oadLogueo.fRegistrar(poenLogueo);
                }
                catch (SqlException ex)
                {
                }
            }
            return (N);
        }
    }
}
